<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Originurl extends Model
{
    protected $fillable = [
        'title', 'url', 'rate', 'category_id', 'tags'
    ];

    public function urls()
    {
        return $this->hasMany('App\Models\CrawlerUrl', 'origin_url_id');
    }

    public function filter()
    {
      return $this->hasOne('App\Models\CrawlerFilter', 'origin_url_id');
    }
}
